  <?php
  require_once('includes/db.php');
  unset($_POST['submit']);

  $_POST = array_map('trim',$_POST);

  $_POST['status'] = '1';
  $_POST['passsword'] = md5($_POST['passsword']);
  $_POST['created_date'] = date('Y-m-d H:i:s');

  $lastInsertedId = insert('users',$_POST);

  echo "User inserted on Id : $lastInsertedId \n\n";

